#ifndef _COS_BUFFER_H
#define _COS_BUFFER_H

#include "../common/type.h"

#define S32INT_SIZE (sizeof(s32int))
#define BufMaxSize 10240

class Buffer
{
public:
	Buffer();
	~Buffer();
	void Init();
	s32int GetBodySize();
	void SetBodySize(s32int Size);
	void Append(void * value, u32int size);
	void * GetBody();
	u32int GetUsed();
private:
	s8int m_Buf[BufMaxSize];
	u32int m_Used;
};

#endif
